<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="cn.edu.nju.ws.sview.Config,java.util.Enumeration" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SView 偏好设置</title>
<link rel="icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="/sview/css/bootstrap_button.min.css" />
<link rel="stylesheet" type="text/css" href="/sview/css/layout.css" />
<link rel="stylesheet" type="text/css" href="/sview/css/lang_set.css" />
<script type="text/javascript" src="/sview/script/jquery.js"></script>
<script type="text/javascript" src="/sview/script/global.js"></script>
<script type="text/javascript" src="/sview/script/langPreference.js"></script>
</head>
<body>
<%
	String lang = request.getParameter("lang");
	String from = request.getParameter("f");
%>
<div class="header_bar" >
  <div class="bar-container">
    <div class="nav">
     <ol>
       <li><span class="lc"><a href='/sview/views/index.jsp?lang=zh'>实体</a></span></li>
       <li><span class="lc"><a href='/sview/relations/index.jsp?lang=zh'>数据集</a></span></li>
     </ol>
    </div>
    <div class="setting">
      <ol>
        <li><span class="lc"><span class="uinfo">
        <% 
          String user = (String)session.getAttribute("user"); 
          if(user==null){
        %>
        <a  onClick="login()">登录</a>
        <%
          }else{
        %>
        <%=user %>
        <%} %>
        </span></span></li>
        <li><span class="usplitBox"><span class="usplit"></span></span></li>
        <li><span class="lc"><a id="set-option" href="javascript:void(0)"><span class="set_options"></span></a></span></li>
      </ol>
    </div>
  </div>
  <div class="dmenu" id="dmenu">
    <ol>
     <li><a href="/sview/preference?lang=zh">语言设置</a></li>
    </ol>
  </div>
</div>
<div class="container">
   <div class="top">
      <div class="mspacing"></div>
     <div class="operation">语言设置</div>
     <div class="mspacing"></div>
   </div>
   <div class="mspacingLittle"></div>
   <div class="main">
	<div class="leftPanel">
	 <ol class='leftnav'>
        <li><a class="nav-item d" href="javascript:void(0)" onclick="return false">显示语言</a></li>
     </ol>
	</div>
	<div class="rightPanel">
	  <div class="lang-display-set">
	     <div class="hint">SView 使用哪个语言显示内容？</div>
	     <div> 
        	<span><input type="radio" value="en" name="display-langs" checked/>英语</span>
        	<span><input type="radio" value="zh" name="display-langs"/>中文 (简体)</span>
         </div>
         <div class="mspacingLittle dis"></div>
	     <div class="form-button">
	       <div id ="displayLangbuttons" class="formbuttons">
	        <input type="button" value="保存" class="sbutton btn btn-primary fb">
	        <input type="button" value="取消" class="cbutton btn fb">
	       </div>
	     </div>
	  </div>

	</div>
	</div>
</div>
<input type="hidden" id="display-lang" name="display-lang" value="zh" />
<%if(from!=null){ %>
  <input type="hidden" id="f"  value=<%=from%> /> 
<%} %>
<jsp:include page="/vfooter_zh.jsp"></jsp:include>
</body>
</html>